	var map;
	var currentinfowindow;
  	function load_map() {
    	var latlng = new google.maps.LatLng(39.925, 116.385);
    	var myOptions = {
      		zoom: 11,
      		center: latlng,
      		mapTypeId: google.maps.MapTypeId.ROADMAP
    	};
    	map = new google.maps.Map(document.getElementById("map-box"), myOptions);
  	}
 	
  
  	function showBsubInfo(index){
  		clearOverlays();
		//markersArray[index].click();
		setMapCenter(markersArray[index].getPosition());
  		markersArray[index].setMap(map);
  		infowinArray[index].open(map,markersArray[index]);
  		map.setZoom(18);
  	}
  	
  	function setMapCenter(latlng){
  		map.setCenter(latlng);
  	}
  	
  	var markersArray = [];
  	var infowinArray = [];
  	// Removes the overlays from the map, but keeps them in the array
  	function clearOverlays() {
  	  if (markersArray) {
  	    for (i in markersArray) {
  	    	//infowinArray[i].clase();
  	      	markersArray[i].setMap(null);
  	    }
  	  }
  	}

  	// Shows any overlays currently in the array
  	function showOverlays() {
  	  if (markersArray) {
  	    for (i in markersArray) {
  	      markersArray[i].setMap(map);
  	    }
  	  }
  	}

  	// Deletes all markers in the array by removing references to them
  	function deleteOverlays() {
  	  if (markersArray) {
  	    for (i in markersArray) {
  	      markersArray[i].setMap(null);
  	    }
  	    markersArray.length = 0;
  	  	infowinArray.length = 0;
  	  }
  	}
  	
  	
  	function addBsubMarker(lat,lng,title,address,phone){
	  	var bLatlng = new google.maps.LatLng(lat, lng);
	  	var contentString = '<div id="content">'+
	  	'<div id="siteNotice">'+
	  	'</div>'+
	  	'<h3 id="firstHeading" style="border-bottom: 1px solid #9CB8CC;color: #333333;font-size: 14px;line-height: 22px;margin:0;padding: 0;">'+title+'</h3>'+
	  	'<div >'+
	  	'<p style=\'line-height:22px;color: #7D7D7D;margin: 3px 0 0 0; padding: 0;\'>地址：'+address+'</p>'+
	  	'<p style=\'line-height:22px;color: #7D7D7D;margin: 0; padding: 0;\'>电话：'+phone+'</p>'+
	  	'</div>'+
	  	'</div>';
	
		var infowindow = new google.maps.InfoWindow({
		  	content: contentString
		});
		
		var marker = new google.maps.Marker({
		  	position: bLatlng,
		  	map: map,
		  	title:title
		});
		
		google.maps.event.addListener(marker, 'click', function() {
			setMapCenter(marker.getPosition());
			infowindow.open(map,marker);
		});
		//setMapCenter(marker.getPosition());
		//infowindow.open(map,marker);
		markersArray.push(marker);
		infowinArray.push(infowindow);
  	}
  